From d7550bb8fb9dbc380b3c5898290c0c61a944345d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 26 May 2012 13:45:06 -0400 Subject: [PATCH] Mention cairo_save/restore in the ::draw migration docs https://bugzilla.gnome.org/show_bug.cgi?id=646798 --- docs/reference/gtk/migrating-2to3.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml index 33d227557a..9db760ae00 100644 --- a/docs/reference/gtk/migrating-2to3.xml +++ b/docs/reference/gtk/migrating-2to3.xml @@ -1001,7 +1001,8 @@ AM_CONDITIONAL(BUILD_x11, [test "x$have_x11" = "xyes"]) Another convenience function that can help when implementing ::draw for multi-window widgets is gtk_cairo_transform_to_window(), which transforms a cairo context from widget-relative coordinates - to window-relative coordinates. + to window-relative coordinates. You may want to use cairo_save() and + cairo_restore() when modifying the cairo context in your draw function. All GtkStyle drawing functions (gtk_paint_box(), etc) have been changed -- 2.30.2